package fr.neyb.bernouilli.problem001;

public class Entry {

	public static void main(String... args) {
		int result = 0;

		for (int curr = 1; curr < 1000; curr++) {
			if (curr % 3 == 0 || curr % 5 == 0)
				result += curr;
		}

		System.out.println(result);
	}

}
